function testAlert()
{
	alert("testing");
	return false;
}
function justTest()
{
	return true;
}

function validateForm()
{
	var name = document.forms["ContactForm"]["name"].value;
	var email = document.forms["ContactForm"]["email"].value;
	var message = document.forms["ContactForm"]["message"].value;
	var atpos=email.indexOf("@");
	var dotpos=email.lastIndexOf(".");
	if (name == null || name == "" || email == null || email == "" || message == "" || message == null)
	{
		alert("All fields must be filled out");
		return false;
	}
	if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= email.length || email.substring(atpos - 1, atpos) == ".")
	{
		alert("Not a valid e-mail address");
		document.forms["ContactForm"]["email"].focus();
		return false;
	}
	return true;
}